//
//  BaseNavCtrl.m
//  Cunli
//
//  Created by lilubin on 15/6/9.
//  Copyright (c) 2015年 lilubin. All rights reserved.
//

#import "BaseNavCtrl.h"
//#import "REFrostedViewController.h"
//#import "UIViewController+REFrostedViewController.h"

@interface BaseNavCtrl ()

@end

@implementation BaseNavCtrl

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
        [self setNavAttributes];
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super initWithCoder:aDecoder]) {
        [self setNavAttributes];
    }
    return self;
}

- (void)setNavAttributes
{
    [[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"NavigationBgImage"] forBarMetrics:UIBarMetricsDefault];
    NSDictionary *navbarTitleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor]};
    [[UINavigationBar appearance] setTitleTextAttributes:navbarTitleTextAttributes];
    [[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
    
    [[UINavigationBar appearance] setTitleTextAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:20],NSForegroundColorAttributeName:[UIColor whiteColor]}];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


- (void)popSideMenu
{
}

@end
